﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using Csla;
using Csla.Data;

namespace BO
{

    [Serializable()]
    public partial class RoleAccess:BusinessBaseEx
    {
        public RoleAccess()
        {
            this.Clear();
        }
         
        
    #region primary field
       
         private static PropertyInfo<String> OIDProperty=RegisterProperty( typeof(RoleAccess), new PropertyInfo<String>("OID",true));
       
        
         public String OID
        { 
            get{return GetProperty(OIDProperty);}
            set{SetProperty(OIDProperty, value); }
        }
       
         private static PropertyInfo<String> FormNameProperty=RegisterProperty( typeof(RoleAccess), new PropertyInfo<String>("FormName",false));
       
        
         public String FormName
        { 
            get{return GetProperty(FormNameProperty);}
            set{SetProperty(FormNameProperty, value); }
        }
       
         private static PropertyInfo<String> ControlNameProperty=RegisterProperty( typeof(RoleAccess), new PropertyInfo<String>("ControlName",false));
       
        
         public String ControlName
        { 
            get{return GetProperty(ControlNameProperty);}
            set{SetProperty(ControlNameProperty, value); }
        }
       
         private static PropertyInfo<Boolean> EnabledProperty=RegisterProperty( typeof(RoleAccess), new PropertyInfo<Boolean>("Enabled",false));
       
        
         public Boolean Enabled
        { 
            get{return GetProperty(EnabledProperty);}
            set{SetProperty(EnabledProperty, value); }
        }
       
         private static PropertyInfo<Boolean> VisibleProperty=RegisterProperty( typeof(RoleAccess), new PropertyInfo<Boolean>("Visible",false));
       
        
         public Boolean Visible
        { 
            get{return GetProperty(VisibleProperty);}
            set{SetProperty(VisibleProperty, value); }
        }
       
         private static PropertyInfo<String> RoleNameProperty=RegisterProperty( typeof(RoleAccess), new PropertyInfo<String>("RoleName",false));
       
        
         public String RoleName
        { 
            get{return GetProperty(RoleNameProperty);}
            set{SetProperty(RoleNameProperty, value); }
        }
       
         private static PropertyInfo<Boolean> IsInactiveProperty=RegisterProperty( typeof(RoleAccess), new PropertyInfo<Boolean>("IsInactive",false));
       
        
         public Boolean IsInactive
        { 
            get{return GetProperty(IsInactiveProperty);}
            set{SetProperty(IsInactiveProperty, value); }
        }
    #endregion 
       
        public override string GetTableName()
        {
            return "RoleAccess";
         }
        
    
    
    }
}